#ifndef SWITCHER_H
#define SWITCHER_H

#include <QWidget>
#include <QMouseEvent>
#include <QDebug>


namespace Ui {
    class Switcher;
}

class Switcher : public QWidget
{
    Q_OBJECT

public:
    enum GameMod{
        mod5v5Full,
        mod3v3,
        mod5v5Lite,
        modNull
    };

    explicit Switcher(QWidget *parent = 0);
    ~Switcher();


    /*
     *  Function to update the text of the switcher based of the current game mod
     */
    void updateText();

    /*
     *  Function to get the current game mod
     *  @return Switcher::GameMod : Current game mod
     */
    Switcher::GameMod getMod();

    /*
     *  Function to switch to the next game mod
     */
    void switchMod();

    /*
     *  Function to set a text in the switcher
     *  @param QString text : Text to display
     */
    void setText(QString text);
private:
    Ui::Switcher *ui;               //Pointer to the UI
    GameMod gameMod;                //Current game mod

signals:
    void signalGameModChanged();
    void signalMousePressEvent(QMouseEvent*);
};

#endif // SWITCHER_H
